package com.rt.system.mapper;

import java.util.List;
import com.rt.system.domain.RtOptionsInfo;

/**
 * 试题选项Mapper接口
 * 
 * @author Yg
 * @date 2022-04-13
 */
public interface RtOptionsInfoMapper 
{
    /**
     * 查询试题选项
     * 
     * @param id 试题选项主键
     * @return 试题选项
     */
    public RtOptionsInfo selectRtOptionsInfoById(Long id);

    /**
     * 查询试题选项列表
     * 
     * @param rtOptionsInfo 试题选项
     * @return 试题选项集合
     */
    public List<RtOptionsInfo> selectRtOptionsInfoList(RtOptionsInfo rtOptionsInfo);

    /**
     * 新增试题选项
     * 
     * @param rtOptionsInfo 试题选项
     * @return 结果
     */
    public int insertRtOptionsInfo(RtOptionsInfo rtOptionsInfo);

    /**
     * 修改试题选项
     * 
     * @param rtOptionsInfo 试题选项
     * @return 结果
     */
    public int updateRtOptionsInfo(RtOptionsInfo rtOptionsInfo);

    /**
     * 删除试题选项
     * 
     * @param id 试题选项主键
     * @return 结果
     */
    public int deleteRtOptionsInfoById(Long id);

    /**
     * 批量删除试题选项
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRtOptionsInfoByIds(Long[] ids);

    // 根据试题id删除选项
    public int deleteRtOptionsInfoByQuestionId(String id);
}
